package cn.com.springsource.ioc.day2;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class ContextApplication {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(Spring.class);
        IndexService indexService = (IndexService) context.getBean("indexService");
        indexService.serviceTest();
    }
}
